﻿@*@model TJBHJJ.Models.Home*@
@{
    TJBHJJ.Models.Home home = new TJBHJJ.Models.Home();
    var newsindex = 10;
    if (!int.TryParse(System.Configuration.ConfigurationManager.AppSettings["NewsIndex"], out newsindex))
    {
        newsindex = 5;
    }
}
<ul class="leftul">
    @foreach (var v in home.News.Take(newsindex))
    {

        <li>@Html.ActionLink((v.Title.Length > 13 ? v.Title.Substring(0, 13) + "..." : v.Title), "Detail", "News", new { page = 0, id = v.Id }, new { })</li>

    }
</ul>
